package com.rslai.commons.util.excel.exception;

/**
 * Created by rslai on 2016/5/8.
 */
public class ExcelException extends Exception {
    private static final long serialVersionUID = 2472134441285471808L;

    private int exceptionCode;
    private String exceptionMsg;

    public ExcelException(){
        super();
    }

    public ExcelException(String exceptionMsg){
        super(exceptionMsg);
    }

    public ExcelException(Throwable cause){
        super(cause);
    }
    public ExcelException(String exceptionMsg, Throwable cause){
        super(exceptionMsg, cause);
    }

    public ExcelException(int exceptionCode, String exceptionMsg){
        super(exceptionMsg);
        this.exceptionCode = exceptionCode;
        this.exceptionMsg = exceptionMsg;
    }

    public String getExceptionMsg() {
        return exceptionMsg;
    }

    public void setExceptionMsg(String exceptionMsg) {
        this.exceptionMsg = exceptionMsg;
    }

    public int getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(int exceptionCode) {
        this.exceptionCode = exceptionCode;
    }

}
